package com.xiaocg.sparse.test;

public class CountSort {
    public static void main(String[] args) {
        int[] a= {2,5,3,0,2,3,0,3};
        int[] c = new int[6];
        //下标对应分数
        c[0]=2;
        c[1]=0;
        c[2]=2;
        c[3]=3;
        c[4]=0;
        c[5]=1;
        //对c数组顺序求和
        c[1]=2;
        c[2]=4;
        c[3]=7;
        c[4]=7;
        c[5]=8;

    }
}
